<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Pulog.Models.Post>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<title>EditPost</title>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>EditPost</h2>

    <%= Html.ValidationSummary() %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            <legend>Fields</legend>
            <p>
                <label for="postID">postID:</label>
                <%= Html.TextBox("postID") %>
                <%= Html.ValidationMessage("postID", "*") %>
            </p>
            <p>
                <label for="title">title:</label>
                <%= Html.TextBox("title") %>
                <%= Html.ValidationMessage("title", "*") %>
            </p>
            <p>
                <label for="pubTime">pubTime:</label>
                <%= Html.TextBox("pubTime") %>
                <%= Html.ValidationMessage("pubTime", "*") %>
            </p>
            <p>
                <label for="authorID">authorID:</label>
                <%= Html.TextBox("authorID") %>
                <%= Html.ValidationMessage("authorID", "*") %>
            </p>
            <p>
                <label for="views">views:</label>
                <%= Html.TextBox("views") %>
                <%= Html.ValidationMessage("views", "*") %>
            </p>
            <p>
                <label for="property">property:</label>
                <%= Html.TextBox("property") %>
                <%= Html.ValidationMessage("property", "*") %>
            </p>
            <p>
                <label for="categoryID">categoryID:</label>
                <%= Html.TextBox("categoryID") %>
                <%= Html.ValidationMessage("categoryID", "*") %>
            </p>
            <p>
                <label for="sticky">sticky:</label>
                <%= Html.TextBox("sticky") %>
                <%= Html.ValidationMessage("sticky", "*") %>
            </p>
            <p>
                <label for="content">content:</label>
                <%= Html.TextBox("content") %>
                <%= Html.ValidationMessage("content", "*") %>
            </p>
            <p>
                <label for="password">password:</label>
                <%= Html.TextBox("password") %>
                <%= Html.ValidationMessage("password", "*") %>
            </p>
            <p>
                <label for="slug">slug:</label>
                <%= Html.TextBox("slug") %>
                <%= Html.ValidationMessage("slug", "*") %>
            </p>
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

